package com.h3c.ptability.mapstruct;

import com.h3c.ptability.dto.electronicSign.PtEsignSceneAttrDTO;
import com.h3c.ptability.entity.PtEsignSceneAttr;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenyifan
 * @date 2022/5/24 11:35
 */
@Mapper
public interface PtEsignSceneAttrMapstruct {

    PtEsignSceneAttrMapstruct INSTANCE = Mappers.getMapper(PtEsignSceneAttrMapstruct.class);

    /**
     * dto转换成实体类
     */
    PtEsignSceneAttr dtoToEntity(PtEsignSceneAttrDTO templateDTO);

    List<PtEsignSceneAttr> dtoToEntity(List<PtEsignSceneAttrDTO> templateDTO);

    /**
     * 实体类转换成dto
     */
    PtEsignSceneAttrDTO entityToDto(PtEsignSceneAttr templateDTO);

    List<PtEsignSceneAttrDTO> entityToDto(List<PtEsignSceneAttr> list);

}
